/*
 * This file is part of FauXML.
 * FauXML is free software: you can redistribute it
 * and/or modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the License,
 * or (at your option) any later version.
 *
 * FauXML is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with FauXML.
 * If not, see <http://www.gnu.org/licenses/>.
 */
package com.googlecode.fauxml.parser;

/**
 * This exception is thrown by the FauXMLParserEngine when an error occurs
 * during parsing.
 *
 * @author amatta
 */
public class FauXMLParseException extends Exception {
	private static final String DEFAULT_MESSAGE = "XMLParseException";
	
	public FauXMLParseException(int line, int column) {
		this(line, column, null, null);
	}

	public FauXMLParseException(int line, int column, Throwable cause) {
		this(line, column, null, cause);
	}

	public FauXMLParseException(int line, int column, String message) {
		this(line, column, message, null);
	}

	public FauXMLParseException(int line, int column, String message, Throwable cause) {
		super(message == null ? DEFAULT_MESSAGE : message
				+ " at Line " + line + ", Col " + column, cause);
	}
}
